<template>
<div class="tool-wrapper">
    <div class="ui segment mysegment">
        <h3>es8 test</h3>
        <div>
            <span class="ui button" @click="sync">同步配置</span>
            <div class="clearFix"></div>
        </div>
    </div>
</div>
</template>

<script type="text/ecmascript-6">
import mycity from 'components/field/city'
import util from '_util/index';
import tool from 'src/util/tool'


export default {
  data() {
    return {

    }
  },
  methods: {
    sync(){

        let option = {
            mid: 171,
            can_submit:true,
            name: 'pop_edit_com',
            clb(){
                tool.cl('in clb');
            }
        };
        util.showPopCom(this, option);

//        let info = {
//            mid: 171,
//            yes_event: 'sync_yes_event'
//        };
//        util.showEditPop(this, info);
    },
      yes_event(){
          tool.cl('in 171');
      }
  },
  watch: {

  },
  components: {
    mycity
  },
  computed: {
      
  },
  props:  [],
  mounted() {
    
  },
    created() {
        util.eventOn(this, 'sync_yes_event', this.yes_event);
    }
};
</script>

<style rel="stylesheet/less" lang="less" scoped>
  @import "../../common/style/mixin";
  
#region_sort_mm{
    padding-left: 30%;
}
</style>
